package com.state.example;

public class Work {
    private State current;
    public Work(){
        current = new ForenoonState();
    }
    public double hour;

    public boolean finish = false;

    public boolean taskFinished;

    public void setState(State s){
        current = s;
    }

    public void writeProgram(){
        current.writeProgram(this);
    }

}
